//
//  DBNetworkLogDataBase.h
//  AFNetworking
//
//  Created by HaiOu on 2019/11/5.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface DBNetworkLogModel : NSObject
@property (nonatomic, strong) NSDate *date;
@property (nonatomic, copy) NSString *uriString;
@property (nonatomic, copy) NSString *method;
@property (nullable, nonatomic, copy) NSDictionary *header;
@property (nullable, nonatomic, strong) id parameters;
@property (nonatomic, assign) NSInteger code;
@property (nullable, nonatomic, strong) id responseObject;
@property (nullable, nonatomic, copy) NSString *errorDescription;
@end

@interface DBNetworkLogDataBase : NSObject

+ (BOOL)insertNetworkLog:(DBNetworkLogModel *)model;

+ (NSArray<DBNetworkLogModel *> *)queryAllNetworkLog;

+ (BOOL)deleteAllNetworkLog;

@end

NS_ASSUME_NONNULL_END
